#!/usr/bin/env python3

import rospy
from DrEmpower_can.msg import disable_angle_range
# import DrEmpower as dr

def callback(data):
    import DrEmpower as dr
    dr.disable_angle_range(id_num=data.id_num)
    rospy.loginfo("disable_angle_range_node")


def listener():
    rospy.init_node("disable_angle_range", anonymous=True)
    rospy.Subscriber("disable_angle_range", disable_angle_range, callback)
    rospy.spin()


if __name__ == '__main__':
    listener()

